package cn.com.icbc.wjl.GWT.client;

import java.util.ArrayList;
import java.util.List;

public class Category {
	
	private Long id;
	private String name;
	private String description;
	private List<Category> children;
	
	public Category() {
		this(null, null, null);
	}
	public Category(Long id, String name, String description) {
		this.id = id;
		this.name = name;
		this.description = description;
		this.children = new ArrayList<Category>();
	}
	//children getter and setter
	public List<Category> getChildren() {
		return this.children;
	}
	
	public void addChildCategory(Category category) {
		this.children.add(category);
	}
	
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}

}
